import { Link } from '@brillout/docpress'

Telefunc's [Vite](https://vitejs.dev) plugin automatically adds Telefunc to Vite apps.

The plugin:
 - Transforms our `.telefunc.js` files, see <Link href="/transformer" />.
 - Automatically adds the <Link text="Telefunc Server Middleware" href="/telefunc" /> to Vite's development server as well as Vite's preview server.
 - Lazy-loads our `.telefunc.js` files for optimal development speed (aka on-demand compilation).

We can pass Telefunc server configurations to the Vite plugin:

```ts
// vite.config.ts

import type { UserConfig } from 'vite';
import { telefunc } from 'telefunc/vite'

export default {
  plugins: [
    telefunc({
      disableNamingConvention: true
      // ...
    })
  ]
} satisfies UserConfig
```
